<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/10/23 0023
 * Time: 下午 3:33
 */

namespace app\controller;


use app\BaseController;
use think\Container;
use think\annotation\route;
class Test extends BaseController
{

    function index(){
        return "test/index"."方法名=".$this->request->action().",当前实际路径：".$this->app->getBasePath();
    }

    /**
     * @param string $value
     * @return string
     * @route("t/h:value",method="GET")
     */
    function hello($value=""){
        return "test/hello-".$value;
    }

    function arrays(){


        halt("cao");
        return json(["a"=>1,"b"=>2]);
    }

    function config(){

        //print_r($this->app->config->get()['app']['error_message']);
        //print_r($this->app->env->get()['APP_DEFAULT_TIMEZONE']);
        //print_r($this->app->lang->get());
    }

    function test(){


    }
}